//
//  OMCommonAddressTableCell.m
//  OMENGO_NEW
//
//  Created by 梁尚嘉 on 2017/4/21.
//  Copyright © 2017年 Kamfat. All rights reserved.
//

#import "OMCommonAddressTableCell.h"
@interface OMCommonAddressTableCell ()
@property (nonatomic, strong) UIImageView *edgeImageView;
@end

@implementation OMCommonAddressTableCell

- (void)configure
{
    [super configure];
    [self.contentView addSubview:self.edgeImageView];
    self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    [self.edgeImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.equalTo(@0);
        make.left.equalTo(@0);
        make.width.equalTo(@(SM_SCREEN_WIDTH));
    }];
}
#pragma mark - Getters
- (UIImageView *)edgeImageView
{
    if (!_edgeImageView) {
        _edgeImageView = [[UIImageView alloc]initWithImage:[[UIImage imageNamed:@"ic_envelope_edge"] resizableImageWithCapInsets:UIEdgeInsetsZero resizingMode:UIImageResizingModeTile]];
    }
    return _edgeImageView;
}
@end
